package first.endtoend

class Tag
{

    String tagId
    //this type is defined to specify if this tag is related to a product or to a beneficiary

    Date dateCreated
    Date lastUpdated

    TagType type

    static hasMany = [traces: Trace]

    static constraints = {
        tagId(unique: true, nullable: false)
    }


    @Override
    public String toString()
    {
        tagId
    }
}
